<div id="data_page" class="in_page">
	<div class="panel panel-default">
  <div class="panel-body">
   <form class="form-inline" action="{:U('Apt/index')}" method="get" name="keyword" id="keyword">
   	 
	  <div class="form-group" >
	   
	  <input type="text" class="form-control" id="exampleInputName2"  name="key" placeholder="搜索">
	  </div>

	
	 
  	  <button type="submit" class="btn btn-sm btn-default">搜索</button>
			 <div class="form-group" >
   <a href="{:U('Apt/addlist')}"><button type="button" class="btn btn-sm btn-primary ">添加项目</button></a>  
   <a href="{:U('Apt/listimg')}"><button type="button" class="btn btn-sm btn-primary ">列表轮播图管理</button></a>  
   	</div>
</form>



  
  </div>

</div>
      <table class="table table-bordered">
        <thead>
          <tr>
            <th><span class="glyphicon glyphicon-gift"></span>#</th>
            <th><span class="glyphicon glyphicon-leaf"></span>项目名</th>
            <th><span class="glyphicon glyphicon-fire"></span>所属地区</th>
              <th><span class="glyphicon glyphicon-fire"></span>所属区域</th>
             <th><span class="glyphicon glyphicon-fire"></span>所属服务中心</th>
             <th><span class="glyphicon glyphicon-fire"></span>房型图</th>
         
            <th><span class="glyphicon glyphicon-calendar"></span>操作</th>
          </tr>
        </thead>
        <tbody>
          
      <volist name="list" id="data"  key="$key" >     
		  <tr>
            <th scope="row">{$key+1}</th>
            <th>{$data.name}</th>
            <th>{$data.city}</th>
             <th>{$data.area}</th>
            <th>{$data.sc}</th>
             <th> <a href="{:U('Apt/fangxinglist')}?id={$data.id}"> <button type="button" class="btn btn-primary btn-xs">管理</button></a> </th>
            <th>
				 <a href="{:U('Apt/uplist')}?id={$data.id}"> <button type="button" class="btn btn-primary btn-xs">修改</button></a>  
				 
				<a href="{:U('Apt/delapt')}?id={$data.id}">  <button type="button" class="btn btn-danger btn-xs">删除</button></a>  
  			</th>
          </tr>
          
     </volist>        
          
        </tbody>
      </table> 
	  	<style>
 .pagelist{ text-align:right;  padding:7px 0;}
  .pagelist a{ margin:0 5px; border:#6185a2 solid 1px; display:inline-block; padding:2px 6px 1px; line-height:16px; background:#fff; color:#6185a2; text-decoration: none;}
 .pagelist span{ margin:0 5px; border:#6185a2 solid 1px; display:inline-block; padding:2px 6px 1px; line-height:16px; color:#6185a2; color:#fff; background:#6185a2;}


</style>
  
	<nav>
	
			<div class="pagelist">
		    {$page}
		   </div>
	
	</nav>
</div>